package com.echo.dao;

import com.echo.entity.bean.AuthorizationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/***
 * @date   2021/7/15 0015 14:06
 * @author JackeyTower
 */
@Mapper
@Repository
public interface AuthorizationDAO {

    @Select("select * from authorization_control where identity_status=#{is} and accessible_API=#{name}")
    public AuthorizationEntity selectByRoleAndMethodName(@Param("is") int is, @Param("name") String name);
}
